/**
 * 对象事件关联(订阅/发布模式)
 * 
 * @author lanc
 */
var APPEVENT = {};
APPEVENT.event = new function(){
	/**
	 * this对象引用
	 */
	var self = this;
	/**
	 * 应用名称
	 */
	this.appName = "appevent";
	
	this.pubsub = new AppPubsub();//订阅发布模式总控制对象
	/**
	 * 订阅指定类型的事件
	 */
	this.subscribeBindEvent = function(eventType,subscribeCallback){
		var token = self.pubsub.subscribe(eventType, subscribeCallback);
		console.info(token);
	};
	
	/**
	 * 对象发布指定类型的事件
	 */
	this.publishMsg = function(eventType,publishContext){
		self.pubsub.publish(eventType,publishContext);
	};

};